package com.entity;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the CONFIRM_ database table.
 * 
 */
@Entity
@Table(name="CONFIRM_")
@NamedQuery(name="Confirm.findAll", query="SELECT c FROM Confirm c")
public class Confirm implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CONFIRM__CONFIRMID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CONFIRM__CONFIRMID_GENERATOR")
	@Column(name="CONFIRM_ID")
	private long confirmId;

	@Column(name="CONFIRM_CRUCES")
	private String confirmCruces;

	@Temporal(TemporalType.DATE)
	@Column(name="CONFIRM_DATE")
	private Date confirmDate;

	@Column(name="CONFIRM_IFDELETE")
	private BigDecimal confirmIfdelete;

	@Temporal(TemporalType.DATE)
	@Column(name="CONFIRM_INTODATE")
	private Date confirmIntodate;

	@Column(name="CONFIRM_RESULT")
	private String confirmResult;

	@Column(name="CONFIRM_STAFF")
	private String confirmStaff;

	@Temporal(TemporalType.DATE)
	@Column(name="CONFIRM_TIME")
	private Date confirmTime;

	//bi-directional many-to-one association to Repairorder
	@OneToOne
	@JoinColumn(name="REPAIRORDER_ID")
	@JSONField(serialize=false)
	private Repairorder repairorder;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="USER_ID")
	private User user;

	//用户id
	@Transient
	private Long userId;
	//维修工单id
	@Transient
	private Long repairorderId;
	
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getRepairorderId() {
		return repairorderId;
	}

	public void setRepairorderId(Long repairorderId) {
		this.repairorderId = repairorderId;
	}

	public Confirm() {
	}

	public long getConfirmId() {
		return this.confirmId;
		}

	public void setConfirmId(long confirmId) {
		this.confirmId = confirmId;
	}

	public String getConfirmCruces() {
		return this.confirmCruces;
	}

	public void setConfirmCruces(String confirmCruces) {
		this.confirmCruces = confirmCruces;
	}

	public Date getConfirmDate() {
		return this.confirmDate;
	}

	public void setConfirmDate(Date confirmDate) {
		this.confirmDate = confirmDate;
	}

	public BigDecimal getConfirmIfdelete() {
		return this.confirmIfdelete;
	}

	public void setConfirmIfdelete(BigDecimal confirmIfdelete) {
		this.confirmIfdelete = confirmIfdelete;
	}

	public Date getConfirmIntodate() {
		return this.confirmIntodate;
	}

	public void setConfirmIntodate(Date confirmIntodate) {
		this.confirmIntodate = confirmIntodate;
	}

	public String getConfirmResult() {
		return this.confirmResult;
	}

	public void setConfirmResult(String confirmResult) {
		this.confirmResult = confirmResult;
	}

	public String getConfirmStaff() {
		return this.confirmStaff;
	}

	public void setConfirmStaff(String confirmStaff) {
		this.confirmStaff = confirmStaff;
	}

	public Date getConfirmTime() {
		return this.confirmTime;
	}

	public void setConfirmTime(Date confirmTime) {
		this.confirmTime = confirmTime;
	}

	public Repairorder getRepairorder() {
		return this.repairorder;
	}

	public void setRepairorder(Repairorder repairorder) {
		this.repairorder = repairorder;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}